import React from 'react';
class Home extends React.Component {
    go=()=>{
        setTimeout(() => {
            // this.props.history.push('/list',{a:123,b:345})
            // this.props.history.push({pathname:'/list',state:{a:123,b:345}})
            // this.props.history.push('/list?q=123&b=345')
            this.props.history.push('/list2/12343523')
        }, 2000);
    }
    render() {
        console.log(this.props)
        return <div className=''>
        HOME
        <button onClick={this.go}>去list</button>
        </div>;
    }
}
export default Home